const express = require('express')
const app = express()

// //req->请求  res->发送
// app.get('/', function (req, res) {
//     res.send([{
//         user: 'song'
//     }])
// })

app.use(require('cors')())

//访问静态文件
app.use(express.static('public'))
app.use('/static', express.static('public'))

//req->请求  res->发送
app.get('/products', function (req, res) {
    res.send([

    ])
})

app.listen(2333, () => {
    console.log('App listrning on port 2333!')
})